package cn.ren.cloud.feign;

import cn.ren.cloud.doc.EsCourseDoc;
import cn.ren.cloud.domain.CourseOrder;
import cn.ren.cloud.fallback.OrderFeignClientFallbackFactory;
import cn.ren.cloud.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 23508
 */
@FeignClient(value = "service-order", fallbackFactory = OrderFeignClientFallbackFactory.class)
public interface OrderFeignClient {

    /**
     * feign接口调用
     *
     * @param orderNo
     * @return
     */
    @RequestMapping(value = "/courseOrder/selectByOrderNo/{orderNo}", method = RequestMethod.GET)
    CourseOrder selectByOrderNo(@PathVariable("orderNo") String orderNo);

}
